
// app/api/auth/token/route.ts
import {NextRequest, NextResponse} from "next/server";
import {getToken} from "next-auth/jwt";

export async function GET(req: NextRequest) {
    const token = await getToken({req})
    return NextResponse.json(token)
}